package com.mano.mall.api.integral;

import com.alibaba.fastjson.JSONObject;
import com.mano.mall.api.dto.integral.input.IntegralInputDTO;
import com.mano.mall.common.base.BaseResponse;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 * 积分接口
 */
@Api(tags = "积分服务")
public interface IntegralService {

    @RequestMapping("/addIntegral")
    @ApiOperation(value = "增加积分")
    public BaseResponse<JSONObject> addIntegral(IntegralInputDTO integralInputDTO);


    @RequestMapping("/removeIntegral")
    @ApiOperation(value = "扣除积分")
    public BaseResponse<JSONObject> removeIntegral(Integer id);


    public boolean checkPayIntegral(String paymentId);

}
